home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / DATABASE / DOCPROC1.ZIP;1 / PROG-DOC.ZIP / DOC-PROC.MAN next >
Encoding:
Text File  |  1992-10-23  |  100.4 KB  |  1,762 lines

  1.                                                                                 
  2.                                                                                 
  3.                                                                                 
  4.                                                                                 
  5.                                                                                 
  6.                                                                                 
  7.                                                                                 
  8.                                                                                 
  9.                                                                                 
  10.                                                                                 
  11.                                                                                 
  12.                                                                                 
  13.                         The Doc-Proc Reference Manual                           
  14.                                                                                 
  15.                         Version 1.0 February 19, 1993                           
  16.                                                                                 
  17.                      Copyright 1993 CONNECT/Soft Publishing Co.                 
  18.                                                                                 
  19.                               All Rights Reserved                               
  20.                                                                                 
  21.                                                                                 
  22.                                                                                 
  23.                                                                                 
  24.                                                                                 
  25.                                                                                 
  26.                                                                                 
  27.                                                                                 
  28.                                                                                 
  29.                                                                                 
  30.                                                                                 
  31.                                                                                 
  32.                             CONNECT/Soft Publishing Co.                         
  33.                             4247 Bingham Ct.
  34.                             Stone Mountain, Georgia 30083
  35.                             United States of America
  36.  
  37.                             Sole Proprietor:
  38.                             John S. Ward
  39.                                                                                 
  40.                                                                                 
  41.                                                                                 
  42.                                                                                 
  43.                                                                                 
  44.                                                                                 
  45.                                                                                 
  46.                                                                                 
  47.                                                                                 
  48.                                                                                 
  49.  
  50.                                                                                 
  51.                                                                                 
  52.                                                                                 
  53.                                                                                 
  54.                                                                                 
  55.                                                                                 
  56.                                                                                 
  57.                                                                                 
  58.                                                                                 
  59.                                                                                 
  60.  
  61.                                                                                 
  62.                                                                                 
  63.                                                                                 
  64.                                                                                 
  65.                                Table of Contents                                
  66.                                                                                 
  67.                                                                                 
  68.                                                                                 
  69.       Introduction ..................................... 1
  70.       Installation ......................................3
  71.       Program Requirements (Programmer) ................ 3                      
  72.       Program Requirements (User) ...................... 3                      
  73.       Distribution Files ............................... 3                      
  74.       Registration ..................................... 4
  75.       Shareware License ................................ 4
  76.       Shareware Warranty ............................... 4
  77.       Registered License ............................... 4
  78.       Registered Warranty .............................. 5
  79.       Registered Support ............................... 5
  80.       Frankness Clause ................................. 6
  81.       Disclaimer ....................................... 6
  82.       About Config.sys and Autoexec.bat ................ 6                      
  83.       Contacting the Author ............................ 6                      
  84.       Upgrade Policy ................................... 7                      
  85.       Script Syntax .................................... 7
  86.       Format of Script File ............................ 8
  87.       Script Tokens .................................... 10                     
  88.           CENTER ....................................... 10                     
  89.           COMMENT....................................... 11
  90.           DEST.......................................... 12
  91.           DIRECTORY..................................... 13
  92.           END........................................... 14
  93.           GOODBYE....................................... 14
  94.           MARGIN........................................ 15
  95.           MENU1 ........................................ 15
  96.           MENU2 ........................................ 16
  97.           NETWORK....................................... 17
  98.           SENTENCE...................................... 18
  99.           SKIP.......................................... 19
  100.           TITLE......................................... 20
  101.       Script Debugging ................................. 21
  102.       Error Messages ................................... 21
  103.           Critical File Errors ......................... 22
  104.           Token Syntax Errors .......................... 24
  105.           Miscellaneous Errors ......................... 25
  106.           Critical Hardware Errors ..................... 25
  107.       Preparing Documents for Doc-Proc...................26
  108.       Preparing the News File for Doc-Proc...............26
  109.       Registration ..................................... 27
  110.       The TEN Commandments ............................. 28
  111.  
  112.  
  113.  
  114.  
  115.  
  116.      ===========================================================================
  117.                                     Introduction                                
  118.      ===========================================================================
  119.                                                                                 
  120.                                                                                 
  121.      Once upon a time I wrote a program that was (and is) distributed           
  122.      nationwide.  This program, like most, needs to be installed on the         
  123.      customers' hard drives.  I investigated every document processor           
  124.      that I could find, and came away convinced that none of them had been      
  125.      done very well.  Under no circumstances could I justify $250, up to        
  126.      $350, for any of them.                                                     
  127.                                                                                 
  128.      I wrote Doc-Proc.                                                          
  129.                                                                                 
  130.      Doc-Proc is a script driven professional On-line Information Retrieval      
  131.      System that you as a programmer (or consultant) can use to categorize      
  132.      documents in a manner that is easy to retrieve.  These can be documents    
  133.      used within a department or small business.                                
  134.      You as a programmer (or consultant) can use to install your                
  135.      applications or information bases on your customers' computers.  My        
  136.      personal goal with this program was to develop a program that used,        
  137.      as input, token commands to process document files in the most convenient   
  138.      way possible.  The procedure HAD to be configurable quickly and easily.
  139.      A brief list of features includes:                                         
  140.                                                                                 
  141.                                                                                 
  142.                                                                                 
  143.         -     Professional look and feel for a better first                     
  144.               impression.                                                       
  145.                                                                                 
  146.         -     Comprehensive environment detection, including minimum            
  147.               CPU, floating point processor, installed RAM, and MS-Dos          
  148.               version.                                                          
  149.                                                                                 
  150.         -     All Doc-Proc text strings may be optionally redefined             
  151.               via an external file.                                             
  152.                                                                                 
  153.         -     Supports VGA/EGA 50/43 line text modes if detected.               
  154.                                                                                 
  155.         -     You customize your own titles for each of your screens.           
  156.                                                                                 
  157.         -     Doc-Proc is designed with user friendly Function keys that        
  158.               allow you to have access to POP-UP HELP screens. Help screens     
  159.               are available for each Menu panel.                                
  160.                                                                                 
  161.         -     You optionally define the output destination for all documents.   
  162.               If no output destinations are designated, a default list
  163.               of destinations will be generated on the Destination screen.      
  164.                                                                                 
  165.         -     You may specify a number of different printers for output         
  166.               all of which could be connected to the same printer port          
  167.               by using Network directives.                                      
  168.  
  169.  
  170.  
  171.                                                                                 
  172.         -     You have the capability of specifying any Network or Dos          
  173.               command before Doc-Proc processes any documents.                  
  174.                                                                                 
  175.         -     Doc-Proc has a user interface that allows the user to issue       
  176.               Network or Dos directives while while choosing a destination      
  177.               option.                                                           
  178.                                                                                 
  179.         -     You define the Main menu panel by using category names            
  180.               appropriate to the documents displayed in the sub-menus.          
  181.                                                                                 
  182.         -     You optionally define the headings for each sub-menu panel.       
  183.               If no heading is designated for a sub-menu panel, Doc-Proc        
  184.               will generate one using the name of the category from             
  185.               the Main menu.                                                    
  186.                                                                                 
  187.         -     You have the capacity to specify up to 18 different categories    
  188.               on the main panel and up to 18 documents for each sub-menu.       
  189.               This means it is possible to access a maximum number of 324
  190.               documents on-line.  This, however, assumes that no titles
  191.               will be used on the menu panels.  For every title line used
  192.               used to describe a menu panel, you have one less line on the
  193.               screen for a category or document name.
  194.                                                                                 
  195.         -     Sub-menu panels are designed so that multiple documents           
  196.               may be selected by separating each option number with a           
  197.               comma.                                                            
  198.                                                                                 
  199.         -     Doc-Proc has the capability to display all selected documents     
  200.               on the terminal.                                                  
  201.                                                                                 
  202.         -     Doc-Proc is equipped with a system news processor which allows    
  203.               the administrator to place dated news on the system that may      
  204.               be pertinent to the On-line documentation.  A selection panel      
  205.               allows one to view all news or only that news which is less       
  206.               30 days old.                                                      
  207.                                                                                 
  208.         -     Perhaps one of the most intriguing features attained by using     
  209.               token directives, is that you have the flexibility of             
  210.               allowing the Doc-Proc administrator to design the screens using   
  211.               any language.  For example: Spanish, French, English, and         
  212.               German can be easily used without any modifications to the        
  213.               source code.                                                      
  214.                                                                                 
  215.         -     Robust error handling, including a custom critical error          
  216.               handler that won't scare the dickens out of you.                  
  217.               As text from the MENU.FIL is read, it is scanned for              
  218.               syntax errors.  All syntax errors will be displayed on            
  219.               the Product Banner screen.  The line number in error will         
  220.               be displayed along with a descriptive error message.              
  221.               Doc-Proc will terminate until all syntax errors have been         
  222.               corrected.                                                        
  223.                                                                                 
  224.  
  225.                           Doc-Proc Reference Manual
  226.                                       - 2 -
  227.  
  228.  
  229.  
  230.  
  231.      ===========================================================================
  232.                                   Installation
  233.      ===========================================================================
  234.  
  235.      The installation procedure for Doc-Proc was designed to install Doc-Proc
  236.      and all associated files.  The installation procedure will install the
  237.      Doc-Proc package on the C drive under the directory Doc-Proc.  A
  238.      subdirectory will be created called DOC.  This directory will contain
  239.      some sample documents to be used with Doc-Proc.  It is recommended that
  240.      all documents to be used with Doc-Proc be placed under the DOC
  241.      subdirectory.  The installation has been designed so that you may change
  242.      the installation default directories to whatever you wish.  In order to
  243.      install the Doc-Proc package type INSTALL and follow the instructions.
  244.  
  245.      ===========================================================================
  246.                        Program Requirements (Programmer)                        
  247.      ===========================================================================
  248.                                                                                 
  249.            1. Text editor for creating and modifying the script file(s).        
  250.               This text editor must not insert tab characters into your         
  251.               screen definition lines.                                          
  252.            2. MS-Dos 3.0 or higher.                                              
  253.            3. IBM PC BIOS compatible MS-Dos computer with at least 200k
  254.               free RAM.
  255.            4. Standard CGA or Hercules compatible video subsystem.              
  256.                                                                                 
  257.      ===========================================================================
  258.                           Program Requirements (User)                           
  259.      ===========================================================================
  260.                                                                                 
  261.            1. MS-DOS 3.0 or higher.                                             
  262.            2. IBM PC BIOS-compatible MS-DOS computer with 200k free RAM
  263.               (more RAM needed for RUN commands)
  264.            3. Standard CGA or Hercules compatible video subsystem.              
  265.                                                                                 
  266.      ===========================================================================
  267.                               Distribution Files                                
  268.      ===========================================================================
  269.                                                                                 
  270.      Doc-Proc comes distributed with the following files:                       
  271.                                                                                 
  272.              DOC-PROC.EXE - the executable
  273.              DOC-PROC.MSK - mask library for screen interface
  274.              DOC-PROC.MAN - this reference manual
  275.              MENU.FIL     - sample script used to demonstrate Doc-Proc
  276.              ORDER.DOC    - order form
  277.              READ.ME      - quick hello
  278.  
  279.      If any of these files were missing, feel free to down-load the latest       
  280.      version from the CONNECT/Soft On-line.  Also, when you distribute           
  281.      Doc-Proc with your applications, feel encouraged to rename it to what      
  282.      ever you wish to call it.
  283.                                                   
  284.                           Doc-Proc Reference Manual
  285.                                       -3-
  286.  
  287.  
  288.  
  289.  
  290.      ===========================================================================
  291.                                  Registration                                   
  292.      ===========================================================================
  293.                                                                                 
  294.      Upon receipt of the registration price of $50.00 (U.S. funds only) you     
  295.      will be sent a disk with the most current version that will enable you     
  296.      to use the package without displaying my shareware notice.  Use
  297.      the file "order.doc" to order.  Sorry, MC/Visa not accepted.               
  298.                                                                                 
  299.  
  300.      ===========================================================================
  301.                                Shareware License                                
  302.      ===========================================================================
  303.                                                                                 
  304.      You are free to distribute shareware copies of Doc-Proc provided           
  305.      that none of the included files are modified or removed, and provided      
  306.      that no additional files are included in the archive.  Modifying the       
  307.      archive format (from .zip to some other format perhaps more                
  308.      convenient) is permitted.                                                  
  309.                                                                                 
  310.                                                                                 
  311.      ===========================================================================
  312.                               Shareware Warranty                                
  313.      ===========================================================================
  314.                                                                                 
  315.      The shareware version of Doc-Proc is guaranteed to take up disk            
  316.      space.  The author of this product is more than happy to hear about any    
  317.      bugs or unexpected behavior through non-voice channels (netmail, US        
  318.      Postal Service, or logging on to the CONNECT/Soft BBS), but will not       
  319.      guarantee that immediate bug fixes will be forthcoming.                    
  320.                                                                                 
  321.      ===========================================================================
  322.                               Registered License                                
  323.      ===========================================================================
  324.                                                                                 
  325.      You are free to make unlimited backup copies of this program for           
  326.      archival purposes.  You may not distribute copies of this program          
  327.      except under the following provisions:  You may at your choosing give      
  328.      away or sell your program with its accompanying files to ONE party,        
  329.      provided you destroy all copies of the software in your possession         
  330.      after the time of the transaction.  The copies of the program that are     
  331.      used to install your applications MUST NOT be distributed with the key     
  332.      that enables script modifications.                                         
  333.                                                                                 
  334.      Pursuant to United States copyright laws and international copyright       
  335.      agreements, Doc-Proc must be treated as if it were a book.  Just          
  336.      as two people cannot read a book in front of separate computers, two       
  337.      people must not simultaneously use the same registered copy of             
  338.      Doc-Proc.  The sole purpose of archival copies of Doc-Proc is              
  339.      to be for protection against hardware or diskette failure.
  340.  
  341.  
  342.                  
  343.                           Doc-Proc Reference Manual
  344.                                       - 4 -
  345.  
  346.  
  347.  
  348.  
  349.      ===========================================================================
  350.                               Registered Warranty                               
  351.      ===========================================================================
  352.                                                                                 
  353.      The registered version (original copy) is warranted to meet in all key     
  354.      aspects its defined behavior as listed in the documentation.  Key          
  355.      aspects are those features without which the program will fail in some     
  356.      gross manner to perform as desired.  Minor specifications (such
  357.      as prompt lengths, etc.) are subject to change without notice.  The
  358.      final arbiter as to the interpretation of the documentation shall be
  359.      the author of the program.  The sole remedy available to the purchaser
  360.      of Doc-Proc shall be bug fixes or a refund, as determined by the
  361.      author.  Work-arounds (eg syntax modifications) for the purposes of
  362.      warranty consideration will be considered acceptable if they make
  363.      possible the same task that any bug renders impossible.  If verified
  364.      bugs are not corrected within 30 days of notification, and if the
  365.      purchaser is working in good faith to keep in contact with the author,
  366.      the purchaser at his option is entitled to a refund.  Verified bugs are
  367.      those which the author is able to duplicate on machines that fall
  368.      within the equipment requirements list.
  369.  
  370.      Upgraded versions of Doc-Proc will be handled in a slightly
  371.      different fashion.  Unless demonstrated otherwise, it is assumed by
  372.      the author that free upgrades obtained by the purchaser are so
  373.      obtained as a matter of the purchaser's convenience, and it is thus
  374.      assumed that the original, purchased copy of Doc-Proc is not
  375.      defective.  It is further assumed that if a bug is discovered in a
  376.      free upgrade, the purchaser is still able to use his older version of
  377.      Doc-Proc.  Therefore, unresolved bugs found in a free upgrade of
  378.      Doc-Proc are not subject to a refund of monies paid should such
  379.      bugs remain unresolved after 30 days.  Any bugs found should still be
  380.      reported to the author, as he will give all bug reports due attention
  381.      in his attempts to resolve them.
  382.  
  383.      There is one exception to this previous provision.  If the author
  384.      represents an upgrade as a fix to a bug reported by the purchaser,
  385.      then the full original warranty shall be extended to cover the
  386.      upgrade.
  387.  
  388.      ===========================================================================
  389.                               Registered Support                                
  390.      ===========================================================================
  391.                                                                                 
  392.      The registered version entitles the purchaser to unlimited support via     
  393.      netmail, the CONNECT/Soft BBS or via US Mail.  I am unable, however, to    
  394.      provide telephone support.                                                 
  395.        
  396.  
  397.  
  398.  
  399.  
  400.                           
  401.  
  402.                           Doc-Proc Reference Manual
  403.                                       -5-
  404.  
  405.  
  406.  
  407.  
  408.      ===========================================================================
  409.                                Frankness Clause                                 
  410.      ===========================================================================
  411.                                                                                 
  412.      As you well know, it's darned difficult to get a publisher to stand        
  413.      behind his product.  He usually guarantees the diskette (what a joke)      
  414.      and hangs you out to dry.  If there is an error in the program, I will     
  415.      do anything possible to correct it in a timely fashion.  I am also         
  416.      very interested in any ambiguities or errors in this documentation.        
  417.      Whatever problems you do find, I would appreciate a note.                  
  418.                                                                                 
  419.                                                                  
  420.      ===========================================================================
  421.                                   Disclaimer                                    
  422.      ===========================================================================
  423.                                                                                 
  424.      While every effort has been made by the author to ensure the fitness       
  425.      for use and integrity of Doc-Proc, the author cannot and will not          
  426.      accept responsibility for any damage, physical or otherwise, to any        
  427.      equipment owned by the purchaser.  The author habitually recommends        
  428.      that all customers back up their data regularly and frequently;  that      
  429.      recommendation applies here as well.  The maximum remedy available to      
  430.      the purchaser in the event of any type of dispute is the purchase cost     
  431.      of the software.                                                           
  432.                                                                                 
  433.      ===========================================================================
  434.                        About the Autoexec.bat file                              
  435.      ===========================================================================
  436.                                                                                 
  437.      Since the On-line Document Information Retrieval System is installed        
  438.      under a directory called Doc-Proc, you may want to modify your             
  439.      Autoexec.bat file so that the operating system is able to execute          
  440.      the program without having to be under the directory.  In order to         
  441.      do this, you may modify your path command by concatenating the             
  442.      directory Doc-Proc at the end of the PATH command.  Remember to separate   
  443.      the last directory with a semicolon.                                       
  444.                                                                                 
  445.      ===========================================================================
  446.                              Contacting the Author                              
  447.      ===========================================================================
  448.                                                                                 
  449.      If you have any questions concerning the workings of this product          
  450.      you may contact me at the following mailing address:                       
  451.                                                                                 
  452.                                 JOHN S. WARD                                    
  453.                                 4247 Bingham Ct.
  454.                                 Stone Mountain, Georgia 30083
  455.                                 United States of America
  456.                                                                                 
  457.      Any response sent to this address will receive a prompt response.          
  458.  
  459.  
  460.  
  461.                           Doc-Proc Reference Manual 
  462.                                     - 6 -
  463.  
  464.  
  465.  
  466.  
  467.      The following steps will greatly aid technical support and speed of        
  468.      problem resolution:                                                        
  469.                                                                                 
  470.           1. If a specific command is not working as expected, does your        
  471.              usage of the command comply with its description in the            
  472.              appropriate section of the documentation?                          
  473.                                                                                 
  474.           2. To avoid my needing to resort to guesswork, send the exact         
  475.              script that is not working for you with your question.             
  476.                                                                                 
  477.           3. If logging onto the CONNECT/Soft On-line for technical support,     
  478.              prepare your message in advance.  The Message Menu of the BBS      
  479.              has an Upload feature that will allow you to upload your           
  480.              message with most any protocol.  This will greatly reduce          
  481.              connect time and increase accuracy.  Be sure to include your       
  482.              entire script as part of the message, or as its own message.       
  483.                                                                                 
  484.           4. Be sure to indicate exactly which error messages, if any, are      
  485.              accompanying unexpected behavior.                                  
  486.                                                                                 
  487.  
  488.                                  
  489.      ===========================================================================
  490.                                 Upgrade Policy                                  
  491.      ===========================================================================
  492.                                                                                 
  493.      "Once bought, always bought."  Purchasers of Doc-Proc will be              
  494.      entitled to free upgrades indefinitely.  I will notify you of the          
  495.      first significant upgrade of Doc-Proc after registration, and I            
  496.      keep the current registered version of Doc-Proc available for              
  497.      download in the 'Registered User' file section of the CONNECT/Soft On-line. 
  498.                                                                                 
  499.      ===========================================================================
  500.                                  Script Syntax                                  
  501.      ===========================================================================
  502.                                                                                 
  503.      When Doc-Proc.exe is executed, the first file it looks for is a file       
  504.      called MENU.FIL in the same directory as Doc-Proc.  If MENU.FIL is         
  505.      not available, the program terminates.  If MENU.FIL is processed           
  506.      successfully, processing continues until the token command END has been
  507.      encountered in the current script or an end-of-file is reached.  Once      
  508.      all token commands have been processed successfully, panel screens         
  509.      will be displayed for option selections.                                   
  510.                                                                                 
  511.      Before beginning immediately with the syntax proper, an explanation of     
  512.      how Doc-Proc functions is in order:                                        
  513.                                                                                 
  514.      If the script DEST, a token command for output destination, is missing,    
  515.      a default list of output destination options will be displayed on          
  516.      the Destination panel.  If menu headings are missing for the MENU2         
  517.      token command, a MENU2 heading will be constructed from the category       
  518.      name used with the token command MENU1.                                    
  519.                                                                                 
  520.                           Doc-Proc Reference Manual                             
  521.                                       - 7 -                                     
  522.  
  523.  
  524.  
  525.  
  526.      ===========================================================================
  527.                           Format of Script File
  528.      ===========================================================================
  529.                                                                                 
  530.                                                                                 
  531.                                 MENU.FIL                                        
  532.                                 --------                                        
  533.                                                                                 
  534.      The following is a brief overview of the syntax needed for                 
  535.      MENU.FIL:                                                                  
  536.                                                                                 
  537.      TITLE "User banner goes here"                                              
  538.      DEST                                                                       
  539.      SKIP 1                                                                     
  540.      CENTER "Destination title goes here"                                       
  541.      CENTER "Additional destination title goes here"                            
  542.      DEST "Destination description" [printer dest.] [network directive]         
  543.      MENU1                                                                      
  544.      SKIP 1                                                                     
  545.      CENTER "MENU1 category titles here"                                        
  546.      CENTER "Additional MENU! category titles here"                             
  547.      SKIP 1                                                                     
  548.      MENU1 "Name of 1st category"                                               
  549.      MENU2                                                                      
  550.      CENTER "MENU2 screen title here"                                           
  551.      CENTER "Additional MENU2 screen titles here"                               
  552.      SKIP 1                                                                     
  553.      MENU2 "Name of document" "Document name on disk" #pages last-update        
  554.      MENU2 "Name of document" "Document name on disk" #pages last-update        
  555.      MENU2 "Name of document" "Document name on disk" #pages last-update        
  556.      MENU2 "Name of document" "Document name on disk" #pages last-update        
  557.      MENU1 "Name of 2nd category"                                               
  558.      MENU2                                                                      
  559.      CENTER "MENU2 screen title here"                                           
  560.      CENTER "Additional MENU2 screen titles here"                               
  561.      SKIP 1                                                                     
  562.      MENU2 "Name of document" "Document name on disk" #pages last-update        
  563.      MENU2 "Name of document" "Document name on disk" #pages last-update        
  564.      MENU2 "Name of document" "Document name on disk" #pages last-update        
  565.      MENU2 "Name of document" "Document name on disk" #pages last-update        
  566.      SKIP 2                                                                     
  567.      GOODBYE "So-long text goes here"                                           
  568.      GOODBYE "Additional GOODBYE lines go here"                                 
  569.      END                                                                        
  570.  
  571.  
  572.  
  573.                                                                                 
  574.                                                                                 
  575.                                                                                 
  576.  
  577.  
  578.                                                                                 
  579.                           Doc-Proc Reference Manual                         
  580.                                       -8-
  581.  
  582.                                          
  583.  
  584.                                                                                 
  585.      In the above example, the order that the tokens appear is the              
  586.      most logical, but is not strictly required.  The following is a list       
  587.      of token order requirements:                                               
  588.                                                                                 
  589.            1.    TITLE tokens must appear before any other menu panels are      
  590.                  constructed.  The TITLE token should appear before any         
  591.                  DEST, MENU1 or MENU2 token.  CENTER, SENTENCE, and SKIP        
  592.                  tokens may be used in conjunction with TITLE tokens.           
  593.                                                                                 
  594.            2.    The DEST token used to define a panel of document destination  
  595.                  selections should logically follow the TITLE tokens since this 
  596.                  is the next screen that will be displayed after the user banner
  597.                  screen.  CENTER, SENTENCE and SKIP tokens may be used          
  598.                  in conjunction with DEST tokens.  If one wants to utilize      
  599.                  the default destination panel, leave this command out of       
  600.                  the MENU.FIL.                                                  
  601.                                                                                 
  602.            3.    The MENU1 token must precede a MENU2 token.  If no MENU2 token 
  603.                  precedes a MENU1 token, a sub-panel for that MENU1 token will  
  604.                  not be created.  In other words you will have an entry for a   
  605.                  category but no document names will be displayed when the      
  606.                  user chooses that category.  The absence of a MENU2 token will 
  607.                  not generate an error message as to allow for user flexibility 
  608.                  in building panels.  CENTER, SENTENCE and SKIP tokens may      
  609.                  be used in conjunction with the MENU1 token command so that    
  610.                  a title may be constructed for the category panel.             
  611.                                                                                 
  612.            4.    The MENU2 token directive must follow a MENU1 token directive. 
  613.                  This token is used to build the panel which contains the names 
  614.                  of the documents that will be associated with a selected       
  615.                  category.  The document information for each MENU2 token       
  616.                  directive will be associated with the last MENU1 token         
  617.                  directive.  CENTER, SENTENCE and SKIP tokens may be used in    
  618.                  conjunction with the MENU2 token command so that a title       
  619.                  may be constructed for the document panel.  If neither one     
  620.                  of these tokens is used, a default title will be constructed   
  621.                  using the name of the category from MENU1.
  622.                                                                                 
  623.            5.    The GOODBYE token should follow all previously used tokens.    
  624.                  This token is used to build a screen which displays a final    
  625.                  message before the program terminates.  CENTER, SENTENCE and   
  626.                  SKIP tokens may be used in conjunction with the GOODBYE token  
  627.                  command.  This is an optional token and may be left out of     
  628.                  the token job stream if you wish.                              
  629.                                                                                 
  630.            6.    The END token may be used anywhere in the program.  It simply  
  631.                  terminates all token processing at the point at which the token
  632.                  command is scanned.  Most of the time the END token will be    
  633.                  the very last token used in the job stream.  If no END token   
  634.                  is used Doc-Proc will look for an end-of-file marker before    
  635.                  terminating its token scan.
  636.  
  637.                                     
  638.                           Doc-Proc Reference Manual
  639.                                       - 9 -
  640.  
  641.  
  642.  
  643.                                                                                 
  644.      ===========================================================================
  645.                                  Script Tokens                                  
  646.      ===========================================================================
  647.  
  648.  
  649.             All Script tokens should be placed in a file named MENU.FIL.
  650.             This file should be a standard ASCII text file with a record
  651.             length of 80 bytes.
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.                                                                                 
  661.                                          CENTER                                 
  662.                                          ------                                 
  663.                                                                                 
  664.      Syntax:                                                                    
  665.                                                                                 
  666.        CENTER "Any text enclosed in quotes"                                     
  667.                                                                                 
  668.      Example:                                                                   
  669.                                                                                 
  670.        CENTER "THIS IS A LIST OF CATEGORIES ON OUR NETWORK"                     
  671.                                                                                 
  672.                                                                                 
  673.      The Center token may be used to center a string of text up to 70           
  674.      characters long.  This command may be used in conjunction with the         
  675.      following token directives:                                                
  676.                                                                                 
  677.      1) DEST    - token directive for the Destination panel.                    
  678.      2) MENU1   - token directive for the Primary menu panel.                   
  679.      3) MENU2   - token directive for the Document panel.                       
  680.                                                                                 
  681.      Once any one of these token directives have been issued, You may use       
  682.      the CENTER token command to center designated text for each of the         
  683.      above panels.  Up to 70 characters of text are allowed with the CENTER     
  684.      token command.  If the particular text used creates unbalanced sides,      
  685.      insert an extra space on the errant side to even things out.               
  686.      Any one of the above token directives may be issued before the CENTER      
  687.      token command to designate the appropriate panel for which the text        
  688.      is to be centered.                                                         
  689.      If quotes are omitted for a string of text, an error message will be       
  690.      displayed on the Product Banner screen and processing will be              
  691.      terminated.                         
  692.  
  693.  
  694.  
  695.  
  696.                                        
  697.                           Doc-Proc Reference Manual
  698.                                      - 10 -
  699.  
  700.                                                                                 
  701.  
  702.                                                                                 
  703.                                       COMMENT                                   
  704.                                       -------                                   
  705.                                                                                 
  706.      Syntax:                                                                    
  707.                                                                                 
  708.        COMMENT  Any text following the COMMENT token.                           
  709.                                                                                 
  710.      Example:                                                                   
  711.                                                                                 
  712.        COMMENT  THE DOC-PROC TOKEN CONTROL LANGUAGE                              
  713.        COMMENT                WAS MODIFIED 06/15/93                             
  714.                                                                                 
  715.                                                                                 
  716.      The COMMENT token is used to internally document your token directives.    
  717.      Any text preceded with the COMMENT token is ignored when the program
  718.      builds the panels for the various menus.  The COMMENT command must be      
  719.      followed by one or more spaces.  This command may be used anywhere         
  720.      in your job stream.  Use of this command to document other token           
  721.      directives makes the job stream more readable.                             
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.                                                                                 
  756.                           Doc-Proc Reference Manual
  757.                                      - 11 -
  758.  
  759.                                        
  760.  
  761.                                      
  762.                                        DEST                                     
  763.                                        ----                                     
  764.                                                                                 
  765.      Syntax:                                                                    
  766.                                                                                 
  767.        DEST                                                                     
  768.        DEST "Text enclosed in quotes"                                           
  769.        DEST "Text enclosed in quotes" [printer dest.]                           
  770.        DEST "Text enclosed in quotes" [printer dest.] [network directive]       
  771.        DEST [printer dest.]                                                     
  772.        DEST [printer dest.] [network directive]                                 
  773.                                                                                 
  774.                                                                                 
  775.      Example:                                                                   
  776.                                                                                 
  777.        DEST " 2) HEWLETT PACKARD " [LPT1]  [CAPTURE QUEUE=HPLJ2 S=CCLAB]        
  778.                                                                                 
  779.                                                                                 
  780.      The DEST token is used to build the Destination panel.  This panel allows  
  781.      the user to choose a print destination for those documents that are        
  782.      selected.                                                                  
  783.      The DEST command may be used without any parameters.  This will enable     
  784.      you to use other token commands, such as CENTER and SENTENCE, to build     
  785.      a title for the Destination panel.                                         
  786.      The second form of the DEST command allows you to have multiple lines      
  787.      to describe a single printer destination.                                  
  788.      The third and fourth form of the DEST command use brackets as delimiters   
  789.      for the printer destination and network directive.  When specifying a      
  790.      network directive, it must always follow a printer destination.            
  791.      Option numbers displayed on the Destination panel will correspond          
  792.      to the order of the printer destinations specified in the Job stream.      
  793.      For each printer option to be displayed, you should specify an             
  794.      option number as part of the string literal.                               
  795.      The printer destinations will be stored in a vector starting with          
  796.      an assigned number of 1 and continuing until the last printer              
  797.      destination has been scanned.                                              
  798.      Network directives are optional.  They allow the user of the program       
  799.      to be able to choose a specific printer both of which may be accessed      
  800.      by way of the same print destination [LPT1].  Most of the time             
  801.      a network directive will not be necessary.                                 
  802.      If quotes are omitted for a string of text, an error message will be       
  803.      displayed on the Product Banner screen and processing will be              
  804.      terminated.                                                                
  805.                                                                                 
  806.                                                                                 
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.                           Doc-Proc Reference Manual
  816.                                      - 12 -
  817.  
  818.  
  819.  
  820.  
  821.                                     DIRECTORY
  822.                                     ---------
  823.  
  824.      Syntax:
  825.  
  826.         DIRECTORY  Drive specification followed by the directory.
  827.  
  828.      Example:
  829.  
  830.          DIRECTORY F:\PUBLIC\DOC-PROC\DOC\
  831.  
  832.  
  833.      The Directory token script is used to specify a directory and its
  834.      associated subdirectories.  The directory designation has two
  835.      requirements:
  836.  
  837.          1)  The drive must be specified and followed by a semicolon.
  838.  
  839.          2)  The last subdirectory ends with a back slash.
  840.  
  841.  
  842.      The Directory token may be used to concatenate a drive and directory
  843.      to a file name specified on the MENU2 token command.  By using the
  844.      Directory token to specify a directory, you can save space when
  845.      designating a file name on the MENU2 token command.  This provides more
  846.      room on the MENU2 token command to describe the document type.  If the
  847.      drive is given as part of the file name specified on the MENU2 token
  848.      command, directory information from the Directory token command will
  849.      not be concatenated.
  850.      The Directory token thus allows you to specify a directory for a number
  851.      of documents while at the same time the Directory token command may be
  852.      overridden from the MENU2 token command by specifying a drive with the
  853.      file name.
  854.      This feature thus allows you to specify a directory under which many of
  855.      the documents reside and at the same time allows for the flexability
  856.      of specifying documents residing under different directories.
  857.  
  858.      A sample token job stream using the DIRECTORY token follows:
  859.  
  860.  
  861.           DIRECTORY F:\PUBLIC\DOC-PROC\DOC
  862.           MENU1 "COMPILER LANGUAGES"
  863.             MENU2 "COBOL"      COBOL.DOC                   008  12/04/93
  864.             MENU2 "FORTRAN"    FORTRAN.DOC                 006  12/09/93
  865.             MENU2 "PASCAL"     PASCAL.DOC                  005  11/24/93
  866.           MENU1 "DATABASE LANGUAGES"
  867.             MENU2 "DBASE"      D:\DATABASE\DOC\DBASE.DOC   010  12/14/93
  868.             MENU2 "PARADOX"    D:\DATABASE\DOC\PARADOX.DOC 022  10/21/93
  869.           END
  870.  
  871.  
  872.  
  873.  
  874.                           Doc-Proc Reference Manual
  875.                                      - 13 -
  876.  
  877.  
  878.  
  879.                                                                               
  880.                                        END                                      
  881.                                        ---                                      
  882.      Syntax:                                                                    
  883.                                                                                 
  884.        END                                                                      
  885.                                                                                 
  886.      Example:                                                                   
  887.                                                                                 
  888.        END                                                                      
  889.                                                                                 
  890.                                                                                 
  891.                                                                                 
  892.      The END token is used to terminate script token processing.  This token    
  893.      directive may be placed anywhere in the token command stream.              
  894.      When the Doc-Proc processor processes this command, all other token        
  895.      commands following the END token are ignored.  If no syntax errors are     
  896.      found on those token commands prior to the END command, Doc-Proc will      
  897.      proceed to prompt for destination and menu panel options.  Using this      
  898.      token directive is entirely optional.  Without this token directive,       
  899.      the Doc-Proc processor will continue processing token scripts until        
  900.      it reaches end-of-file.                                                    
  901.                                                                                 
  902.                                                                                 
  903.                                                                                 
  904.                                      GOODBYE                                    
  905.                                      -------                                    
  906.                                                                                 
  907.      Syntax:                                                                    
  908.                                                                                 
  909.        GOODBYE                                                                  
  910.        GOODBYE "Text enclosed in quotes"                                        
  911.                                                                                 
  912.      Example:                                                                   
  913.                                                                                 
  914.        GOODBYE "YOU ARE NOW FINISHED USING THE Doc-Proc system"                 
  915.                                                                                 
  916.      The GOODBYE token script is used to display an optional panel when         
  917.      the Doc-Proc program terminates.  This may be used to tell the end user    
  918.      what to do once he/she has finished using the Doc-Proc processor.          
  919.      The GOODBYE command may be used without any parameters.  This will enable  
  920.      you to use other token commands, such as the SENTENCE token, to help build 
  921.      a GOODBYE panel.  If the GOODBYE token is not used, the program            
  922.      terminates without this additional screen.                                 
  923.      If quotes are omitted for a string of text, an error message will be       
  924.      displayed on the Product Banner screen and processing will be              
  925.      terminated.
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.                           Doc-Proc Reference Manual
  934.                                      - 14 -
  935.  
  936.  
  937.  
  938.                                                                                 
  939.                                       MARGIN                                    
  940.                                       ------                                    
  941.      Syntax:                                                                    
  942.                                                                                 
  943.        MARGIN                                                                   
  944.        MARGIN margin-width                                                      
  945.                                                                                 
  946.                                                                                 
  947.      EXAMPLE:                                                                   
  948.                                                                                 
  949.        MARGIN 4                                                                 
  950.                                                                                 
  951.                                                                                 
  952.      The MARGIN command may be used to designate a left margin width for        
  953.      all the documents selected for printing.  If the MARGIN command is         
  954.      used without a designated margin-width, the margin-width is assumed        
  955.      to be 1.  Use of the MARGIN token will cause Doc-Proc to be slower         
  956.      when printing documents.                                                   
  957.                                                                                 
  958.                                                                                 
  959.                                                                                 
  960.                                                                                 
  961.                                       MENU1                                     
  962.                                       -----                                     
  963.                                                                                 
  964.      Syntax:                                                                    
  965.                                                                                 
  966.        MENU1                                                                    
  967.        MENU1 "Text enclosed in quotes"                                          
  968.                                                                                 
  969.      Example:                                                                   
  970.                                                                                 
  971.        MENU1 "STATISTICAL PACKAGES"                                             
  972.                                                                                 
  973.                                                                                 
  974.                                                                                 
  975.      The MENU1 token is used build the Main Menu panel.  This panel allows      
  976.      the user to choose a category of documents to be viewed.                   
  977.      The MENU1 command may be used without any parameters.  This will enable    
  978.      you to use other token commands, such as CENTER and SENTENCE, to build     
  979.      a title for the Main Menu panel.                                           
  980.      The second form of the MENU1 command is used to build a menu selection     
  981.      panel of categories.  Option numbers will be automatically generated       
  982.      for each category entry.  The order for each entry displayed on the        
  983.      screen will be the same as the order found in the Job stream of            
  984.      token commands.                                                            
  985.      If quotes are omitted for a string of text, an error message will be       
  986.      displayed on the Product Banner screen and processing will be              
  987.      terminated.                                                                
  988.  
  989.  
  990.  
  991.  
  992.                           Doc-Proc Reference Manual
  993.                                      - 15 -
  994.  
  995.                                                                                 
  996.                                      
  997.                                            
  998.                                       MENU2                                     
  999.                                       -----                                     
  1000.                                                                                 
  1001.      Syntax:                                                                    
  1002.                                                                                 
  1003.        MENU2                                                                    
  1004.        MENU2 "Document type" "Document name on disk" number-of-pages last-update
  1005.                                                                                 
  1006.      Example:                                                                   
  1007.                                                                                 
  1008.        MENU2 "STAT PLUS   " "F:\DOCUMENTS\STATPLUS.DOC" 27 09/23/93             
  1009.                                                                                 
  1010.                                                                                 
  1011.      The MENU2 token is used to build the selection panels for each             
  1012.      category of the Main Menu.  Each of these panels allows the user           
  1013.      to select a document to be viewed at the screen or sent to a print         
  1014.      destination.                                                               
  1015.      The MENU2 command may be used without any parameters.  This will enable    
  1016.      you to use other token commands, such as CENTER and SENTENCE, to build     
  1017.      a title for the Main Menu panel.  If no token command is designated        
  1018.      The second form of the MENU2 command is used to build a selection of       
  1019.      documents for each category designated by the MENU1 command.  The drive
  1020.      specification may or may not be present as a part of the "Document name
  1021.      on Disk".  If the drive specification does not exist, a drive and
  1022.      Directroy designation may be defined using the Directory token command.
  1023.      If no Directory token was used, Doc-Proc will look for the document
  1024.      under the current default drive.
  1025.      Option numbers are displayed on the screen for each document name.
  1026.      The order for each entry will be the same as the order found in the
  1027.      Job stream of token commands.
  1028.      If quotes are omitted for a string of text, an error message will be
  1029.      displayed on the Product Banner screen and processing will be
  1030.      terminated.
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.                           Doc-Proc Reference Manual
  1052.                                      - 16 -
  1053.  
  1054.                                                                                 
  1055.  
  1056.  
  1057.                                      NETWORK                                    
  1058.                                      -------                                    
  1059.                                                                                 
  1060.      Syntax:                                                                    
  1061.                                                                                 
  1062.        NETWORK "Text enclosed in quotes"                                        
  1063.                                                                                 
  1064.      Example:                                                                   
  1065.                                                                                 
  1066.        NETWORK "CAPTURE QUEUE=HPLJ2 S=CCLAB1"                                   
  1067.                                                                                 
  1068.                                                                                 
  1069.                                                                                 
  1070.      The NETWORK may be used to issue NETWORK or DOS directives.  This token    
  1071.      command will probably be the least used of the token commands.  It has     
  1072.      been made available if the need for this type of command ever arises.      
  1073.      Most of the NETWORK routing commands will be used in conjunction with      
  1074.      the DEST token command.                                                    
  1075.      If quotes are omitted for a string of text, an error message will be       
  1076.      displayed on the Product Banner screen and processing will be              
  1077.      terminated.                                                                
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.                           Doc-Proc Reference Manual
  1111.                                      - 17 -
  1112.  
  1113.                                                                                 
  1114.                                                                                 
  1115.                                       
  1116.                                           
  1117.                                      SENTENCE                                   
  1118.                                      --------                                   
  1119.                                                                                 
  1120.      Syntax:                                                                    
  1121.                                                                                 
  1122.        SENTENCE "Any text enclosed in quotes"                                   
  1123.                                                                                 
  1124.      Example:                                                                   
  1125.                                                                                 
  1126.        SENTENCE "                     LIBRARY SOUTH ROOM 107"                   
  1127.                                                                                 
  1128.                                                                                 
  1129.      The Sentence token may be used to display unaltered string literals        
  1130.      for a number of select panels.  This command may be used in conjunction    
  1131.      with the following token directives:                                       
  1132.                                                                                 
  1133.      1) TITLE   - token directive for the User Banner panel.                    
  1134.      2) DEST    - token directive for the Destination panel.                    
  1135.      3) MENU1   - token directive for the Primary menu panel.                   
  1136.      4) MENU2   - token directive for the Document panel.                       
  1137.                                                                                 
  1138.      Once any one of these token directives have been issued, you may use       
  1139.      the SENTENCE token command to place a string of text in any of the         
  1140.      above panels.  Up to 70 characters of text are allowed with the SENTENCE   
  1141.      command token.                                                             
  1142.      Any one of the above token directives may be issued before the SENTENCE    
  1143.      token command to designate the appropriate panel for which the text        
  1144.      is to be placed.                                                           
  1145.      If quotes are omitted, an error message will be displayed on the           
  1146.      Product Banner screen and processing will be terminated.                   
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.                                                                                 
  1169.                           Doc-Proc Reference Manual
  1170.                                      - 18 -
  1171.  
  1172.                                       
  1173.  
  1174.                                           
  1175.                                       SKIP                                      
  1176.                                       ----                                      
  1177.                                                                                 
  1178.      Syntax:                                                                    
  1179.                                                                                 
  1180.        SKIP                                                                     
  1181.        SKIP number-of-lines-skipped                                             
  1182.                                                                                 
  1183.                                                                                 
  1184.      EXAMPLE:                                                                   
  1185.                                                                                 
  1186.        SKIP 4                                                                   
  1187.                                                                                 
  1188.                                                                                 
  1189.      The SKIP command may be used to skip a designated number of lines          
  1190.      between lines of text.  This command may be used in conjunction with       
  1191.      the following token directives:                                            
  1192.                                                                                 
  1193.      1) TITLE   - token directive for the User Banner panel.                    
  1194.      2) DEST    - token directive for the Destination panel.                    
  1195.      3) MENU1   - token directive for the Primary menu panel.                   
  1196.      4) MENU2   - token directive for the Document panel.                       
  1197.                                                                                 
  1198.      Once any one of these token directives have been issued, You may use       
  1199.      the SKIP token command to skip a designated number of lines.  If the       
  1200.      SKIP command does not specify a number of lines to be skipped, a skip      
  1201.      value of 1 will be assumed.                                                
  1202.                                          
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.                          Doc-Proc Reference Manual
  1229.                                     - 19 -
  1230.  
  1231.  
  1232.  
  1233.                                                                                 
  1234.                                      TITLE                                      
  1235.                                      ------                                     
  1236.                                                                                 
  1237.      Syntax:                                                                    
  1238.                                                                                 
  1239.        TITLE "Any text enclosed in quotes"                                      
  1240.                                                                                 
  1241.      Example:                                                                   
  1242.                                                                                 
  1243.        TITLE "GEORGIA STATE UNIVERSITY"                                         
  1244.                                                                                 
  1245.                                                                                 
  1246.      The TITLE token identifies the lines of text to be shown to the User       
  1247.      at the beginning of the program.  This enables you to display an           
  1248.      organization or department name.  All text for the User Title will         
  1249.      be display after the Product banner.  Up to 70 characters are allowed      
  1250.      for each line of text.  Each string of text that appears on the Title      
  1251.      screen will be centered.  If the particular text used creates unbalanced   
  1252.      sides, insert an extra space on the errant side to even things out.        
  1253.                                                                                 
  1254.      If quotes are omitted for a string of text, an error message will be       
  1255.      displayed on the Product Banner screen and processing will be              
  1256.      terminated.                                                                
  1257.                                                                                 
  1258.      If you wish text to appear on the Title screen without being centered,     
  1259.      the use the SENTENCE token command.  You are allowed to use up to 20       
  1260.      lines of text on the TITLE screen.  The SENTENCE token command will        
  1261.      process a string literal in its unaltered state.                           
  1262.                                          
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.                            Doc-Proc Reference Manual
  1288.                                      - 20 -
  1289.  
  1290.  
  1291.  
  1292.                                                                                 
  1293.      ===========================================================================
  1294.                                Script Debugging                                 
  1295.      ===========================================================================
  1296.                                                                                 
  1297.      Before you release your customized version of Doc-Proc to your users,      
  1298.      you are going to want to make sure that the end product as you envision    
  1299.      it is actually going to happen.  I have made a great effort to make all    
  1300.      error messages as descriptive as possible.  In the cases of DOS returning  
  1301.      an error, the error message is given verbatim back to you.  I              
  1302.      have taken great lengths to make the parser as smart as possible;          
  1303.      however, possible to make any parser look stupid with intentional or       
  1304.      lucky entries (just leave a terminating curly bracket off a c function     
  1305.      if you need proof.)  If you follow the syntax closely, the parser will     
  1306.      make both Doc-Proc and your application look great.  If you feel           
  1307.      that your syntax is correct, or should be, but the parser seems to         
  1308.      disagree with you, leave me a note through the channels described in       
  1309.      "Contacting the Author."                                                   
  1310.  
  1311.  
  1312.  
  1313.  
  1314.      ===========================================================================
  1315.                                 Error Messages                                  
  1316.      ===========================================================================
  1317.                                                                                 
  1318.      The following are the standard error messages built into Doc-Proc.         
  1319.      The nature of these errors is such that Doc-Proc cannot continue,          
  1320.      so these error messages can probably be classified as Fatal Errors.        
  1321.      Of course, the message the user sees doesn't include the word 'Fatal'      
  1322.      for obvious reasons.                                                       
  1323.                                                                                 
  1324.      Any application should be distributed with manual installation             
  1325.      instructions to help alleviate the unexpected, hence the wordage of        
  1326.      the error message.  The documentation that you provide your users          
  1327.      should include a telephone number in case of installation                  
  1328.      difficulties, or in case manual procedures also didn't succeed.            
  1329.                                          
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.                           Doc-Proc Reference Manual
  1347.                                      - 21 -
  1348.  
  1349.  
  1350.  
  1351.  
  1352.      ==========================================================================
  1353.                                Critical File Errors
  1354.      ==========================================================================
  1355.  
  1356.  
  1357.  
  1358.                        THE FOLLOWING KINDS OF OPEN ERRORS CAN OCCUR             
  1359.                     AND RESULT IN ABNORMAL TERMINATION OF THE PROGRAM           
  1360.                     *************************************************           
  1361.                                                                                 
  1362.                                                                                 
  1363.                                                                                 
  1364.      1)  Error opening MENU.FIL                                                 
  1365.                                                                                 
  1366.            MENU.FIL was not found in the same directory as Doc-Proc,            
  1367.            or there were no file handles available.                             
  1368.                                                                                 
  1369.                                                                                 
  1370.          / ============================================================ \
  1371.          ||                                                            ||       
  1372.          ||     The following unrecoverable error has occurred:        ||       
  1373.          ||                                                            ||       
  1374.          ||                 Error opening MENU.FIL                     ||       
  1375.          ||                                                            ||       
  1376.          || Please refer to your documentation for manual installation ||       
  1377.          || instructions if the problem cannot be corrected.           ||       
  1378.          ||                                                            ||       
  1379.          ||                Press a key to terminate...                 ||       
  1380.          \ ============================================================ /       
  1381.                                                                                 
  1382.                                                                                 
  1383.      2) Error opening NEWS.FIL                                                  
  1384.                                                                                 
  1385.            NEWS.FIL was not found in the same directory as Doc-Proc,            
  1386.            or there were no file handles available.                             
  1387.                                                                                 
  1388.                                                                                 
  1389.                                                                                 
  1390.          / ============================================================ \       
  1391.          ||                                                            ||       
  1392.          ||     The following unrecoverable error has occurred:        ||       
  1393.          ||                                                            ||       
  1394.          ||                 Error opening NEWS.FIL                     ||       
  1395.          ||                                                            ||       
  1396.          || Please refer to your documentation for manual installation ||       
  1397.          || instructions if the problem cannot be corrected.           ||       
  1398.          ||                                                            ||       
  1399.          ||                Press a key to terminate...                 ||       
  1400.          \ ============================================================ / 
  1401.  
  1402.  
  1403.  
  1404.       
  1405.                           Doc-Proc Reference Manual
  1406.                                      - 22 -
  1407.  
  1408.  
  1409.  
  1410.                                                                                 
  1411.      3) Error opening a document file.                                          
  1412.                                                                                 
  1413.            A document was not found on the designated drive on the               
  1414.            your Network.                                                        
  1415.                                                                                 
  1416.                                                                                 
  1417.                                                                                 
  1418.          / ============================================================ \       
  1419.          ||                                                            ||       
  1420.          ||     The following unrecoverable error has occurred:        ||       
  1421.          ||                                                            ||       
  1422.          ||                 Error opening "name-of-document"           ||       
  1423.          ||                                                            ||       
  1424.          ||  Most probable cause: Document named above could not be    ||       
  1425.          ||  found on Disk or Network. Check the name of the file. If  ||       
  1426.          ||  you still have problems, check syntax of the MENU2 token. ||       
  1427.          ||                                                            ||       
  1428.          ||                Press a key to terminate...                 ||       
  1429.          \ ============================================================ /       
  1430.                                           
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.                                       
  1464.                           Doc-Proc Reference Manual                             
  1465.                                       - 23 -
  1466.  
  1467.                                                                                 
  1468.                                                                                 
  1469.                                                                                 
  1470.                                                                                 
  1471.      ==========================================================================
  1472.                                  Token Syntax Errors
  1473.      ==========================================================================
  1474.  
  1475.      DIRECTORY command missing SEMICOLON following drive designation.
  1476.      DIRECTORY command does not end with a "\".
  1477.                                                                                 
  1478.      MARGIN command missing DOUBLE QUOTE MARKS.                                 
  1479.                                                                                 
  1480.      TITLE command missing DOUBLE QUOTE MARKS.                                  
  1481.      TITLE command missing DOUBLE QUOTE MARK.                                   
  1482.      TITLE command has too many DOUBLE QUOTE MARKS.                             
  1483.                                                                                 
  1484.      CENTER command missing DOUBLE QUOTE MARKS.                                 
  1485.      CENTER command missing DOUBLE QUOTE MARK.                                  
  1486.      CENTER command has too many DOUBLE QUOTE MARKS.                            
  1487.                                                                                 
  1488.      SKIP command is missing valid numeric value.                               
  1489.                                                                                 
  1490.      SENTENCE command missing DOUBLE QUOTE MARKS.                               
  1491.      SENTENCE command missing DOUBLE QUOTE MARK.                                
  1492.      SENTENCE command has too many DOUBLE QUOTE MARKS.                          
  1493.                                                                                 
  1494.      DEST command missing DOUBLE QUOTE MARKS.                                   
  1495.      DEST command missing DOUBLE QUOTE MARK.                                    
  1496.      DEST command has too many DOUBLE QUOTE MARKS.                              
  1497.                                                                                 
  1498.      DEST command missing RIGHT BRACKET                                         
  1499.      DEST command missing LEFT BRACKET                                          
  1500.      DEST command has too many LEFT BRACKETS                                    
  1501.      DEST command has too many RIGHT BRACKETS                                   
  1502.                                                                                 
  1503.      NETWORK command missing RIGHT BRACKET                                      
  1504.      NETWORK command missing LEFT BRACKET                                       
  1505.      NETWORK command has too many LEFT BRACKETS                                 
  1506.      NETWORK command has too many RIGHT BRACKETS                                
  1507.                                                                                 
  1508.      MENU2 command has not been preceded by a MENU1 command.                   
  1509.      MENU2 command missing DOUBLE QUOTE MARKS.                                  
  1510.      MENU2 command missing DOUBLE QUOTE MARK.                                   
  1511.      MENU2 command has too many DOUBLE QUOTE MARKS.                             
  1512.                                                                                 
  1513.      GOODBYE command missing DOUBLE QUOTE MARKS.                                 
  1514.      GOODBYE command missing DOUBLE QUOTE MARK.                                  
  1515.      GOODBYE command has too many DOUBLE QUOTE MARKS.                            
  1516.  
  1517.      INVALID TOKEN COMMAND!
  1518.  
  1519.            A token encountered on the indicated line in the script
  1520.            was not a valid command.
  1521.  
  1522.                                                                                 
  1523.                           Doc-Proc Reference Manual                             
  1524.                                      - 24 -
  1525.  
  1526.  
  1527.                                
  1528.                                                                                 
  1529.      ==========================================================================
  1530.                                Miscellaneous Errors
  1531.      ==========================================================================
  1532.                                                                                 
  1533.      DOS version 3.0 or higher required                                         
  1534.                                                                                 
  1535.            A DOS version prior to 3.0 was detected.  Doc-Proc requires          
  1536.            MS-DOS 3.0 or later.                                                 
  1537.                                                                                 
  1538.                                                                                 
  1539.                                                                                 
  1540.      Token was expected but not found: line nn                                  
  1541.                                                                                 
  1542.            A token was expected but not found on the indicated line.  This      
  1543.            usually means that one or more words is missing on this line.        
  1544.                                                                                 
  1545.      Memory allocation error                                                    
  1546.                                                                                 
  1547.            A request for more memory was denied.  This is extremely             
  1548.            unlikely to occur, as Doc-Proc requires under 200k of free           
  1549.            RAM.                                                                 
  1550.                                                                                 
  1551.  
  1552.  
  1553.      ===========================================================================
  1554.                             Critical Hardware Errors
  1555.      ===========================================================================
  1556.                                                                                 
  1557.      Should a disk door be left open (or any other critical error trapped       
  1558.      by DOS, for that matter) a Critical Error handler built into               
  1559.      Doc-Proc will take control and provide the user with a menu similar        
  1560.      to this one:                                                               
  1561.                                                                                 
  1562.  
  1563.                                                                                 
  1564.                                                                                 
  1565.                   / ==========[DOS Critical Error]========= \
  1566.                   ||                                       ||                   
  1567.                   ||   [Abort]  [Retry]  [Ignore]  [Fail]  ||                   
  1568.                   ||                                       ||                   
  1569.                   \ ======================================= /                   
  1570.                                                                                 
  1571.      If the user accepts retry, he will be in most cases safe.  Of course,      
  1572.      if his computer picked the exact moment that he's installing your          
  1573.      application to crash its hard drive, no Critical Error handler is          
  1574.      going to recover very gracefully.
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.                           Doc-Proc Reference Manual 
  1583.                                      - 25 -
  1584.  
  1585.  
  1586.  
  1587.                                                                                 
  1588.      ===========================================================================
  1589.                       PREPARING DOCUMENTS FOR DOC-PROC                          
  1590.      ===========================================================================
  1591.                                                                                 
  1592.      All documents processed by the Doc-Proc processor should be in standard    
  1593.      ASCII text.  If you wish to have a wider left margin on your documents,    
  1594.      You may use the MARGIN token in the token job stream to attain the         
  1595.      desired margin width for the printed documents.  Use of this token         
  1596.      command is not recommended as it generates additional Central Processing   
  1597.      Unit (CPU) overhead which slows down the printing process.                 
  1598.                                                                                 
  1599.      A maximum of 55 lines of text may be printed for each page of text.        
  1600.      This limitation was established to permit automatic page numbering         
  1601.      at the bottom of each page.  If you wish to have forced pagination         
  1602.      between text, you may use the word EJECT.  This command must start         
  1603.      in column 1 and may be used anywhere within the text of your               
  1604.      document.                                                                  
  1605.                                                                                 
  1606.      Make sure that the record length for each document file is 80 bytes        
  1607.      long.                                                                      
  1608.                                                                                 
  1609.      ===========================================================================
  1610.                       PREPARING THE NEWS FILE FOR DOC-PROC                      
  1611.      ===========================================================================
  1612.                                                                                 
  1613.      A news file must be established before Doc-Proc will successfully          
  1614.      execute.  If the NEWS.FIL does not exist under the same directory          
  1615.      as Doc-Proc, the program will generate an appropriate error message        
  1616.      and terminate.                                                             
  1617.      Function key 'F4' is used as the key to display System news.  Once         
  1618.      the System News panel is displayed, you are given a choice of two          
  1619.      options.  You may display all of the news on the system or just that       
  1620.      news less than 30 days old.  The NEWS.FIL is used to place news of         
  1621.      upcoming events within a department or it may be used to post             
  1622.      conference dates.                                                           
  1623.      Each piece of news that is posted in the NEWS.FIL should be preceded      
  1624.      by the date the news was posted.  For readability purposes and file        
  1625.      management, the news date should be on a line by itself.  The news         
  1626.      date should start in column 1 with a 2 digit month followed by             
  1627.      a slash, a 2 digit day followed by a slash, and a 2 digit year.            
  1628.                                                                                 
  1629.      EXAMPLE:                                                                   
  1630.                                                                                 
  1631.      07/01/93                                                                   
  1632.           The XYZ corporation will be closed JULY 4, 1993.                      
  1633.                                                                                 
  1634.      09/01/93                                                                   
  1635.           There is a departmental meeting at 1:00pm 09/15/93 in                 
  1636.           room 105.  Attendance is mandatory.                                   
  1637.  
  1638.      The NEWS.FIL can be maintained by any ASCII text editor.  Make sure        
  1639.      the record length for the file is 80 bytes long.
  1640.  
  1641.                           Doc-Proc Reference Manual
  1642.                                      - 26 -
  1643.  
  1644.  
  1645.  
  1646.  
  1647.      ===========================================================================
  1648.                                   Registration                                  
  1649.      ===========================================================================
  1650.                                                                                 
  1651.      This section deals only with registered copies of Doc-Proc.                
  1652.      Shareware versions have no distribution protection built in                
  1653.      whatsoever.                                                                
  1654.                                                                                 
  1655.      With your registered Doc-Proc diskette you received the latest version     
  1656.      without the shareware notice on the Banner screen.                         
  1657.      This protects my product, as well as protects your installation from       
  1658.      unwanted tampering.                                                        
  1659.                                                                                 
  1660.                                                                                 
  1661.                                                                                 
  1662.                                                                                 
  1663.                                                                                 
  1664.                                                                                 
  1665.                                                                                 
  1666.                                                                                 
  1667.                                                                                 
  1668.                                                                                 
  1669.                                           
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.                                       
  1695.                                                                                 
  1696.                                                                                 
  1697.                                                                                 
  1698.                                                                                 
  1699.                                                                                 
  1700.                           Doc-Proc Reference Manual                             
  1701.                                      - 27 -
  1702.  
  1703.                                                                     
  1704.  
  1705.  
  1706.      ==========================================================================
  1707.                                The Ten Commandments
  1708.      ==========================================================================
  1709.  
  1710.                                     EXODUS 20
  1711.  
  1712.      20 THEN GOD ISSUED this edict:
  1713.          "I am Jehovah your God who liberated you from your slavery in Egypt.
  1714.          "You may worship no other god than me.
  1715.          "You shall not make yourselves any idols: any images resembling
  1716.      animals, birds, or fish.  You must never bow to an image or worship it in
  1717.      any way; for I, the Lord your God, am very possessive.  I will not share
  1718.      your affection with any other god!
  1719.          "And when I punish people for their sins, the punishment continues
  1720.      upon the children, grandchildren, and great-grandchildren of those who
  1721.      hate me; but I lavish my love upon thousands of those who love me and
  1722.      obey my commandments.
  1723.          "You shall not use the name of Jehovah your God irreverently, nor
  1724.      use it to swear to a falsehood.  You will not escape punishment if you
  1725.      do.
  1726.          "Remember to observe the Sabbath as a holy day.  Six days a week are
  1727.      for your daily duties and your regular work, but the seventh day is a
  1728.      day of Sabbath rest before the lord your God.  On that day you are to do
  1729.      no work of any kind, nor shall your son, daughter, or slaves-whether men
  1730.      or women-or your cattle or your house gusts.  For in six days the Lord
  1731.      made the heaven, earth, and sea, and everything in them, and rested the
  1732.      seventh day; so he blessed the Sabbath day and set it aside for rest.
  1733.          "Honor your father and mother, that you may have a long, good life
  1734.      in the land the Lord your God will give you.
  1735.          "You must not murder.
  1736.          "You must not commit adultery.
  1737.          "You must not steal.
  1738.          "You must not lie.
  1739.          "You must not be envious of your neighbor's house, or want to sleep
  1740.      with his wife, or want to own his slaves, oxen, donkeys, or anything else
  1741.      he has."
  1742.  
  1743.  
  1744.      The above passages were taken from "THE LIVING BIBLE PARAPHRASED".
  1745.      These are the words spoken by God "Jehovah" and given to Moses on
  1746.      Mt. Sinai.  They are to be obeyed.
  1747.  
  1748.  
  1749.  
  1750.  
  1751.  
  1752.  
  1753.  
  1754.  
  1755.  
  1756.  
  1757.  
  1758.  
  1759.                           Doc-Proc Reference Manual
  1760.                                      - 28 -
  1761.  
  1762.